fixed the auto button