fixed range and make applet work with new update