Check that chunks and message lengths are equal and fix from-user bugs