Fix logic for liquid planner