Bugfix in module remover