Makes overlay exit work