[PATCH] dm table: get_target: fix last index