fixed problem that pointer was destroyed after moving it