Hows the firmware on the D40? Is it up to date? That looks like a serious problem, I hope you resolve it.