Brilliant app but crashes on iPad and iPhone