Fix the automatic voltage adjust function