Security and bug issues corrected for TC 4.6