fixing rail nav class added twice