Fixed bug - html element used as jquery object