fixed cmake bug