fix bugs on help generation