fixed small bug in loading context