fix set crash