implemented Greg's bug fix
implemented Greg's bug fix

djgagne/SHARPpy,blizzardwarriorwx/SHARPpy,djgagne/SHARPpy,blizzardwarriorwx/SHARPpy,blizzardwarriorwx/SHARPpy,scollis/SHARPpy,djgagne/SHARPpy,blizzardwarriorwx/SHARPpy,djgagne/SHARPpy,scollis/SHARPpy,scollis/SHARPpy,scollis/SHARPpy