smarty3 fixes for user_preferences