Fix bug in set serial param; remove some unneeded reg set in init function.