Bugfix: Add button doesn't work on windows

Issue #1856