Fix the hadging for ever problem of send application master