fixed bug of pie
fixed pie bug