Fixed restrict if public on export.