fixed bug with cl code