fix bug for jquery