removing ghost modules