Fix scoping bug when using multiple helper prerequisites