fix unwanted refresh/reload bugs