fix spelling of occurred in debug()