fix bug in find lastread