Fix error in method.