Fix situation when loader won't disappear