Fix bug in sigma scaling