A failsafe to help prevent inadvertent queen transfer is to shake the bees off, put the frame back in the old hive briefly, and remove a second time. The nurse bees will rapidly recolonize the frame, but the queen will go hide deeper into the nest. The reduced bee count will also make it easier to spot the queen.