Fix a bug with the isEmpty setup.