Fix bug for test