fix bug square bracket with php < v5.5