Fixed the issue with undefined indexes.

Forgot to make global $smof_data in of_save_options() (bad because i
compared against it) and also used the wrong variable for 2 hooks.