fix loading icon behavior