Quick and dirty fix for PHP5.3/5.4 data structure differences.