fixed refresh bug, where refresh would change framerate from default framerate to current timestamp