fixed typo in opt parsing