fix small bug introduced with v2 merging