fix get latest bug