fixed minor crashing issue