fix loading files