Fixed bug reported by George K. Watson. Thanks George!