Fixed resize reference assignment.