solved minor bug at rewrap component