Stupid calculator bug fix