quick bugfix for (int)fps == 0, thanks to Oliver and Benjamin