fix null branch