fixed detached heads again