Fixing detatched HEAD