fix a strange jquery bug