Fixed errors in settings page