Fixed bug in method definition.