Fix bug were readed message length was negative.