Fixing bug with creating new branch and not being able to update it