fix delete querys