Node uses null values and writes less to stream