Preparations for getNearest() support
Make previous change compile