Fixed random segfault in receptivefields.