fix the undefined index, it is the function of PMA_Index