contractdefine and docwritten are properly set to String instead of Boolean