Fixed crash when an empty arg switch is at the end