Magic iOS fix

this should fix #82