Corrected an error with cors