fixes #2634 Time Machine AddHost button does-not work

Fixed the issue and committed code for review, please check it.