fix some critical typos which prevents, core API being not usable

Please merge this ASAP :)