A small fix towards PHP 5.4 compatibility