Small fix on the constructor method