Fixed branch ref not being filled correctly.