added || nil to the index display to prevent error out