ref size fix