Fixed error with generated static initializer code block