small ckeck in case of index error