fixed bug when modifier was changed for same code (previous code/modifier was not stopped)