Fixed keyerror on user setting page

Fix #891