fix stupid "undefined" bug