fix little bug on js call