Fixed refresh rate bug