Small fix for removing endpoint