fix options crash