Fixed undefined options error.