workaround for off-by-one error in LAST