Fix for Php 5.3