fixed issue on PHP version > 5.3