fix crash when not showing graphics