fixed typo on constructor function.