Fix notice when index not exists