Error fixed in flash messages after sync