Fix a bug in flash message display