removing wrong dictionaries