Segmentation fault fixed on class destruction
Using FPS counter