Fix bug of PLF and ECMS