fixed navigation bug when attached to custom selector