Fix preview task running order