Fixed an error found by Donald Parker
Crediting Donald Parker for his contribution