bug fixes: stock queries3