#315 reproduced in test
#315 reproduced the problem
fixes #315