Fixed fps issue