fix seen bug and add default max edit depth