Fix to problem with fitting tool.