fixed percent bug