fixed unitialized result