Fixed a crash issue

The measureFramerate function was not correct, use 25fps as default framerate