Fixed bug in option reader