fixed bugs resulting in no fitting when big thickness range was chosen