fixed bug in coocparam