Fix parseOptions method