fix pretty print error