fixes a bug in app extraction