Fix : delete repeated code.