flashMesssages fix