mistake of getPositions() call