fix color update to the database.