bugfix for options is not defined error