Fix bug in profile modifier.