bug with shell wait span fixed.