QT fixed file loading bug