fixed flashmessages