Fix smart constructor example.