Fixed crash when opening Options Dialog