Fixed weird iOS issue. Fixes #41.