Fixing bug with front page