Fix wrong options variable assignment

This caused the name options's function to ran only for the first file.