Fix deploy bug with chaining.