fixed loading hiding when error