Fixes undefined error.