logout menu bug fix