fix weight and dayparam