Some bugs fixed related to loading panel