Attempting to fix blank index bug