application cleses before 1 second