sigh; actually fixed last_action bug this time