kill "options is undefined" error on load