Bug/fix cors

inconsistent with line 93