Fixed a bug that occures when detaching gui elements. Some elements were not detached correct. Idea and tip from Manuel Leonhardt HFU.