fixes #4343

FYI @danimo