Actually fix data undefined error