Fixed issue in branch conditional