What if gui is undefined?