Fix the refresh interval not resseting to the original value