Fixed a bug: use parts(fromDB) with resizing to max.