fixed a cmake bug