fix delete sql