fixed type attribute causing problems.