Fixed constant resfresh bug