some degug
select attr and drop index bug fix