Fixed bug with a floating elements specified via jQuery selector.