bug fix in globallib