gui crash  fix