fix annoying jquery bug