Fix initialization before immediate reassignment