open position calculation fixes