IssueID #28: fixing the undefined url of TMS when app is fisrtly loaded