Changed partition_model() if: '-eq' to '=='