errors with loading fixed