Fix for PE refresh when adding branches