fixed a bug which made the wrong username appear in the top menu