Fixed ior init.

Just a tiny fix, I noticed ior was not initialized.