fixes for FuelPHP v1.6