extract method _loadFirstContent
fix errors in opening