fixed bug with file opening