Fixed compatibility to older node versions