fixed bug in options parser