applications now quits in time
fixed a bug