removes some inline debugging left in modal