Fixed bug in parseArguments()