fixed bug with option file reading