Make querys call in a timeout to fix bugs