fix reversed category strings