Fix stuck loader bug