Fix a method not working