Fix loader not disappearing bug