fixed small bug in messages index page