Bug in Jquery attributes