Fixed an overrun bug in the fps counter

Thanks Jaw