cda: fix readpos calculation