Fixed 'after' hook for 'edit' command