remove bug on index js