Fixed a stupid undefined error