writeData crash fixed.