Fix constructor

Signed-off-by: Lincoln Lee <git@lincoln.hk>