fixed null pointer for PARIND