Fixing bad method definition