The ability to automatically correct optical spectrum