Remove double declaration and initialized n.