Fixed issue due to "null" values send to console.log