bug of messageflag