Made stencil work on iOS