fix of global $http visibility, issues #493, #494