added check if emit-value is still an object