Fixed a bug in edit output