Fix mssa with gaps