correct bug in module import
introduce shape & max_shape in detectors