fix validation issue on db upgrade