Fix type from script to trader