FITIn: fixes chain of replacments