Batting collapse was blessing in disguise