Error when editing objective
Fixing more errors