applied a fix to closedPositions filter