Fix perty to skip pretty printing on match error
Fix all the errors