fixed crash when action is set