remove bug in cmake