fix if optimization level is set to 0