fix adaptability to nav