Resolved auto start bug

Solved the bug that did not allow the application to run properly at
start on login Windows.