Boeing 787s can lose control while flying due to Software bug