fixes #1564

Because logic.