Fix for constructor when using with Node

Related: #50