Fix class for previous and next in select-time.