minor crashing bug