branch and stage_platform check fix condition typo