fixed history getting & facility updating