fixing issue when url is /