Fixing char->Character bug in factory