bug calculating expected read for source