BUG: too aggressive input cleanup