Fix classification for referential matrix