fixes mistake of switch specs between 7 and 8