fix flash message after message creation

[skip ci]