[CORE] fixed db index in view bug