fix bug in change kind