Fix a bug: check if read info is valid before process them.