Fixed PHP5.4 warning