Fix for case when index is not exist