Fixed options form crashing program