left nav null pointer fix