Correct bug in debug to see what is going on.