fixed frame rate issues