deep bug related to issue #659