fixed red type and button restart issue