fix opening doc in bg models