Fixes bug in Model.off