fixed error in derivParam