fix stupid undefined error