fixes #3591 closes #3591