fix cat-core bug