JS fix for wish cycle