Fixed a constructor bug.