fix more php warnings