Fixed errors in duplicate observed data refactoring.