fix for order doubling