fix get comments api crash