fixed wrong insertion coordinates