Fix switched branches

This bug was introduced in commit 5b8fe2b588db1f7eb0e3cf91c1bf698d1b59cb9d