fix bug between php version