Update gems and set length of subject in index page