Fixed error when no layer was selected at the time of creating the probe.