Fix writeoff creation