Fixed gui crash.