Fix deploy sequence