Fix bug with unexporting