Probing occasionally returns nan for no apparent reason