fix set_ functions bug