fix jquery bug on index