Fix bug with nil actions