fixing composer and detached head