minor app-crashing bug fixed