Fixes empty messages in edit