Trying to fix blank index bug