Fix off by one in percentage