fixed jQuery issues