fix regression of #40 (fix #41)