Working on polar coordinate bug