fixing loading error