minor fix, dangling pointer