fixing jquery bug