Fixed constructor bug.