fixed bug in expansion of def cl