get rid of warnings in PHP 5.4