Duplicated percentage checking

The percentage checking was duplicated