BUGFIX options array throwing error