Fixed PHP strict warnings