Remove php warnings