fixed type error