fixed core mod toggle bug.