fixed php warnings.