fixed setRead crash bug