fixed compiler warnings caused by typos