Fixed some PHP Warning