fixed allocation of tls to specific key