fix bug in clean_up with suffix and prefix