fix a bug of pre-reading