Bug fixed for percentage problem