Corrected errors with create & update actions