Fixed capture bugs on iOS (finally….)