Corrected spelling and capitalisation issues.

This resulted in a bug fix for systems running Mac OS 10.6.x.