Fixed bug albeit strange behaviour depending on order of statements in initializer