fix access not existing index