percent calculation fix