fixed bug on carbon queries