Fix back navigation in preferences