Fixed some PHP strict compliance