KRACOEUS-7196 fixing javascript bug