small bugfixes in percentage