fixing regression tree inheritance