Refer constructor function correctly