fix boot mode in case of short main