fixing binary corruption issue when capturing existing app