Remove Bug in DiffusionModel