Fixed a crash on app startup when using this