Fixes argument parsing.