fixed bugs in persistent messages rendering