fix input js bug for performances