Fixed problem with displaying global loading indicator