fixed duplicat edit