calculator: add workaround