fixes #1: elements can't move out of groups