Fixed a bug that was causing relationship fields to not save properly and throw a 500 error;