fix LeafJS