fixed type-o bug