the are probably doing orientation flights. the start close to the hive and progressively fly farther out. they'll do this for the first couple of days. if you watch carefully, you can see them go farther and farther away from the hive.
they'll figure out the fence.