Fixed detached HEAD