Fix bugs for hive, and add Param/Input/Output checker