Fixed PHP Strict warnings