Fixed statics disappearing sometimes

Thanks @AlphaAsh for noticing this.