Fix that script raises an error instead of returning an object.