fixed add errors