Fix call to flash