Fixed a initialization bug for set().