fixed detached head prompt script