fix errors in options page