fix a couple of bugs having to do with CRLF mapping