bugfix when copy and past modules