Fixed loading popup not hiding

Loading doesn't hide when show is called more than once before hide is called.