Fix trend population -- modulo is not divide