Method 0() does not exists in class