fix nr of modes