mainpage nb bug fix