fixes #5041
#5041