Fix FlashTarget crash