fixed bugs about PHP update