Fixed solution to save server settings in user file