Fix bug in method names