fixed percentage negative value bug