fixed classification spans order