- fix whitespace loss when detaching (done)
