finish get nonzero rect