fix PHP 5.4.4 strict errors