avoid changing the resource when size_is_minsize == true