doc loading bugfix