fix visible space and new line after upgrade