fix for gems not removed after guild creation, fix #1186