#522 reproduced in test