fixed some typos and try to debug.