Fixed small bug in setting loading