fix the fix to action-type checking