Fixes issue #1122: flash messages were not displayed completely