cmake bug fix