fix jChange function