clean index null code