fix bugs in time_pref constraints