Fixed Popup error on calculate click