solved problem with tab and wrong query