Fixed NPE introduced due to static field initialization order.