Fixed undefined options Error