Delete repetitive code


Found repetitive part on line 143:147, delete repetitive part.