solves bug in index page