Fixes #4072 thanks for the patch