Fix bug in action edit