Bug fix in calculator example.