Fixed issue when loading file from project