fix php warnings