fix for detached branch