fix bug using LFJS