Fix gateway settings