Resolved merge conflicts from commit a8eda2d
Resolved merge conflicts from commit 83ba3cf
Merge branch 'hotfix/4640'

Close #4640