fix linespace bug in abstract factory pattern