fixed navigation resize bug