fix return value for multiquery