Resolves issue with flash persisting incorrectly