fixed branch bug