fixed some bugs related to planning with parameterized actions