fix a regexp in the calc module, making the safe-check exponentionaly long.