Fixed bug where removing of options failed.