Fixed gen-class methods.