Fixed cmake bug