bugfix: detection of finding global optimum is now working