Fixed PHP 5.5 notices