Fixed initialization called multiple times

See how compareDistanceBetween demo behaves when you open it, press HOME and go back. There are 4 markers.