fixes bug with shorthand option