fix irritating loading bug