flash writing problems solved