fixed bug in c3dl