write bug