fixing template for ios