fixed get param in index()