Added code history fix to include switch

Forgotten in previous commit