Unlock query button

unlock query button on error