prettify error fix