fix round in percentage calculation