fix Issue #502 - changing groups should update position for the old groups