fixed bug in % calc