Fix several bugs of percentage and export