Fixed bug with options reset