Fixed a bug displaying with navigation bar