fixed failure type creating the same id cause 500 bug