Fixed typos and missing return.