Fix bug in handling before queries
Fix bug in handling before queries

scrollback/pure,belng/pure,scrollback/pure,scrollback/pure,Anup-Allamsetty/pure,scrollback/pure,belng/pure,Anup-Allamsetty/pure,belng/pure,belng/pure,Anup-Allamsetty/pure,Anup-Allamsetty/pure