fix bug in periodbase tls initialization
fix bug in periodbase tls initialization

lgbouma/astrobase,waqasbhatti/astrobase,lgbouma/astrobase,lgbouma/astrobase,waqasbhatti/astrobase,waqasbhatti/astrobase