fixed os alert max len problem