Fix head detached from bug