fixed JQuery problems