fixed pretty print error stacks