hack to clear old flash messages before displaying new ones