fixed a bug in the strip position algorithm