Fixed named param bug