Leaf js fix