Fixed typo in core.lua

I changed something which I believe is a typo.
If it isn't, disregard this.