fix bug active functionality works incorrect while the location.has is come with other utils like angularjs's router