Fixing writelns