modify bb startup mode check.