fixed bug in table queue