fixed logical error in donation model