fixed a bug causing the plugin to fail if no options object is given