fixed js params bug