fix leafJS