Fix IOS drawing bug