fixed an error in parameters passed to instruments