fix pretty mode update break