minor optimization for Flash platfrom end CPP
minor fix
merge