Fixed error on loading file