Fixed undefined options.class
Merge pull request #231 from tristanvanbokkem/work8

Fixed undefined options.class