Fixes the bug when query needs more than 1 arguments