fix casting to string