added fix for PHP Version 5.3<