fixes issue with edit API when used_quota === available_quota, closes #318