fixed errors with loading things