updated version number to 1.0.6
fixed bug within flushQuery