fixed Node Buffer checks