How to remove dependent information if there double entry