store query closure problem