Missing variable in method parameters