error on edit