qfile bugfix, clear the error flag, not set it