fixed 'not on branch' error