Fixed init and load scripts for settings.