fix leafjs