Crashfix for presenting modal view controllers. Closes #368