fixed taking min of max size
fixed taking min of max size

kkellerlbl/transform,kbase/transform,kbase/transform,jkbaumohl/transform,jkbaumohl/transform,kkellerlbl/transform,kkellerlbl/transform,jkbaumohl/transform,kkellerlbl/transform,kbase/transform,jkbaumohl/transform,jkbaumohl/transform,jkbaumohl/transform,kbase/transform,kkellerlbl/transform,kkellerlbl/transform,jkbaumohl/transform,kbase/transform,kbase/transform