Remove debug elements