fix graphic crash