Fix some Flash bugs