fix fact#dimension method bug: when class name include underscore