this is like one of my least favourite special case patches, but i guess it does only modify things in `heads[1]` which shouldn't exist to begin with...