Fixed bug detected by James.