Fix null pointer with TTF