some fix for written order