Remove extra prepending space in on_action