fix flashbag errors