fix prepare task