bugfix with message size