Fixed error in serialReader