Fix bug in pre-setup.