essential calculator bug fixes