avoid indefinite loading spinner