fix ref #41