Fixed bug when building ctf module