fix two deadlocks in View and Group