auto-resort settings
fix JavaScript