bugs in deleted column queries fixed