Fixed small deployment bug where we don't wait for the last instance