fix launch timeout bug (fix #1340)