* fix preferences
* fix NPE for profile edit. bad not work yet.