fixed php single entry bugs.