Fix bug where options doesn't get refreshed