fixed undefiend bootstrap_flash method