fix rAF timeout