layout service fix for ios