fix layout incorrect with empty message