fix calculation error for ',' as decimal point