Bugfix in solid angles code