Fixed wrong fps calculation