fix forever loading spinner issue