fix attach mode
v0.2.1