fix size restriction bug