fixed php warnings