fixed frame rate issue