Bug fix requiring jquery