Bug fix of category mark calculation maybe?