fixed: crash if type() contains % character