Bugfixes for Dynatree