Fix getActionMethods method