Fixed bug that caused app to crash upon exiting