fix loading error