Fixed error when no action was chosen.