fixed collapsing GUI issue