fix crash instead of error message for bad target action