fixes a bug making userOptions to be ignored