fix a typo in a core file causing an error