fixed bug in option parser