writeback: fix break condition