Fixed deleting a subject with measurements