fixed the trailing index due to navbar code