Fix stupid thread-local initialisation error