Fix some errors in settings