fixed that branch numbering bug