fixed integration based bug that assumed dm axis.