prevent an index error