fix bug in GeniInvalidAPIMethod