Correct endpoint error