fixed type conflict in debug code