fix bug with php mapping