fix clientside bug which limited message lengths wrong