Fixed parameter indexing functions in planning rule preprocessing.