Fix bug while running nose.