fixed issue with blank index